package com.demo.juc.jvm;

import java.util.Random;

/**
 * @Author: jxm
 * @Description:
 * @Date: 2022/10/14 13:57
 * @Version: 1.0
 */
public class HelloGC {

    public static void main(String[] args) {
        System.out.println("tryGCDemo hello");
        try {
            String str = "atguigu";
            while(true){
                str += str + new Random().nextInt(77777777)+new Random().nextInt(88888888);
                str.intern();
            }
        }catch (Throwable e){
            e.printStackTrace();
        }
    }
}
